package com.ld.control.business.queue.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 节点重试队列，当命令发送超时的时候进入到此队列然后重试发送
 * </p>
 *
 * @author wangfeng
 * @since 2024-06-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("node_retry_queue")
@Schema(description = "NodeRetryQueueModel对象")
public class NodeRetryQueueModel implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long processNodeExampleRunningId;

    @Schema(description = "状态，0未处理，1已处理")
    private Integer status;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "更新时间")
    private Date updateTime;


    public static final String ID = "id";

    public static final String PROCESS_NODE_EXAMPLE_RUNNING_ID = "process_node_example_running_id";

    public static final String CREATE_TIME = "create_time";

}
